<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>百度候选词</title>
</head>

<body>
    <ul id="myul"></ul>
    <script>
        // 为什么放ul的下面，可以看这篇文章：https://www.cnblogs.com/dotnetcrazy/p/10106976.html
        let test = (json) => {
            let ulobj = document.getElementById("myul");
            json.s.forEach(item => {
                let liobj = document.createElement("li");
                liobj.innerHTML = item;
                ulobj.appendChild(liobj);
            });
        }
        // https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=关键词&cb=回调函数
    </script>
    <script src="https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=dn&cb=test"></script>
</body>

</html>